package zust.javaee.entity;

import javax.persistence.*;
import java.util.Date;

/**
 * Created by liy on 2016/12/18.
 */
@Entity
@Table(name = "tsignup_activity_form")
public class TsignupActivityForm {

    private Integer id;
    private Tmember tmember;
    private Tactivity tactivity;
    private Tcorporation tcorporation;
    private Date createTime;
    private Date updateTime;
    private String content;
    private String reason;
    private Short Status;

    public TsignupActivityForm() {
    }

    @Id
    @GeneratedValue
    @Column(name = "id", unique = true, nullable = false)
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "member_id")
    public Tmember getTmember() {
        return tmember;
    }

    public void setTmember(Tmember tmember) {
        this.tmember = tmember;
    }

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "activity_id")
    public Tactivity getTactivity() {
        return tactivity;
    }

    public void setTactivity(Tactivity tactivity) {
        this.tactivity = tactivity;
    }

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "corporation_id")
    public Tcorporation getTcorporation() {
        return tcorporation;
    }

    public void setTcorporation(Tcorporation tcorporation) {
        this.tcorporation = tcorporation;
    }

    @Column(name = "create_time")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Column(name = "update_time")
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Column(name = "content")
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Column(name = "reason")
    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    @Column(name = "status")
    public Short getStatus() {
        return Status;
    }

    public void setStatus(Short status) {
        Status = status;
    }
}
